home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-07-07 | 2.3 KB | 88 lines | [TEXT/ttxt] |
- // Copyright © 1993, 1994 Apple Computer, Inc. All rights reserved.
- /*
-
- project data for PreeferMadness
-
- */
-
- // application constants
-
- constant kAppSymbol := '|Preefer:PIEDTS|;
- constant kAppString := "Preefer:PIEDTS";
- constant kPackageName := kAppString;
-
- constant kAppName := "Preefer Madness" ;
-
- constant kAppMaxWidth := 240 ;
- constant kAppMaxHeight := 336 ;
-
- // prefs constants
-
- DefConst('kPrefsFrame,
- {tag: kAppString,
- version: 1,
- startWithSound: nil,
- onePrefOnly: true,
- philospherIndex: 0,
- });
-
-
-
- // philisophical constants
- DefConst('kPhilPicker,
- ["None", 'pickSeparator, "Plato", "Aristotle",
- "Descartes", "Mill", "Tsunemoto", "Nietzsche",
- "Marx", "Wittgenstien", "Heidegger", "Russell", "Popper", "Dr. Llama"]) ;
-
-
- InstallScript := func(partFrame)
- begin
- /* AUTO PART: if you have an auto part that requires preferences
- you would add them to the system preferences roll.
- This bit of code shows you how...
-
- //install preferences template in preferences global
- partFrame.prefsTemplate := Clone(partFrame.theForm.PT_PreeferAutoPrefsItem);
- AddArraySlot(Preferences,partFrame.prefsTemplate);
-
- //if Prefs is open - force update to show our entry
- if GetRoot().preferenceRoll.viewCObject then
- GetRoot().preferenceRoll:RedoChildren();
-
- */
-
-
- //install formula template in formulaList global
- partFrame.formulaTemplate := Clone(partFrame.theForm.PT_PreeferFormulaItem);
- AddArraySlot(FormulaList,partFrame.formulaTemplate);
-
- //if Formulas is open - force update to show our entry
- if GetRoot().formulaRoll.viewCObject then GetRoot().formulaRoll:RedoChildren();
-
- end;
-
-
- RemoveScript := func(partFrame)
- begin
- /* AUTO PART: if you have an auto part that requires preferences
- you would remove your preference from the system
- preferences roll, this bit of code shows you how...
-
- //remove preferences template from preferences global
- SetRemove(Preferences,partFrame.prefsTemplate);
-
- //if Prefs is open - force update to remove our entry
- if GetRoot().preferenceRoll.viewCObject then
- GetRoot().preferenceRoll:RedoChildren();
-
- */
-
-
- //remove formula template from formulaList global
- SetRemove(FormulaList,partFrame.formulaTemplate);
-
- //if Formulas is open - force update to remove our entry
- if GetRoot().formulaRoll.viewCObject then GetRoot().formulaRoll:RedoChildren();
-
- end;
-